package com.chixing.day03_oop;

public class CompanyTest {
    public static void main(String[] args) {
        //实例化对象（创建对象）
        //公司实例化对象1
        Company company1 = new Company();
        company1.setCompanyId(9001);
        company1.setCompanyName("中国华为");
        company1.setCompanyAddress("苏州桑田岛");
        company1.setCompanyType("民营企业");
        company1.setCompanyTelNo(1424254544L);
        company1.publishJob();
        company1.getResume();
        //公司实例化对象2
        Company company2 = new Company();
        company2.setCompanyId(9002);
        company2.setCompanyName("苏州驰星");
        company2.setCompanyAddress("苏州工业园区");
        company2.setCompanyType("民营企业");
        company2.setCompanyTelNo(18264646161L);
        company2.publishJob();
        company2.getResume();
        //职位实例化对象1
        Job job1 = new Job();
        job1.company = company1;
        job1.jobID = 1001;
        job1.jobName = "Java初级开发工程师";
        job1.minSalary = 5000.0;
        job1.maxSalary = 7000.0;
        job1.degree = "本科及以上";
        job1.jobAddress = "南京";
        //职位实例化对象2
        Job job2 = new Job();
        job1.company = company2;
        job2.jobID = 1002;
        job2.jobName = "前端初级开发工程师";
        job2.minSalary = 6000.0;
        job2.maxSalary = 8000.0;
        job2.degree = "本科及以上";
        job2.jobAddress = "上海";
    }
}
